package com.daxue.framework;

import com.daxue.framework.pojo.Book;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.FileNotFoundException;

/**
 * @author daxue0929
 * @date 2023/1/8
 */

public class CreateBeanTest {
    public static void main(String[] args) throws FileNotFoundException {
        ClassPathXmlApplicationContext xmlApplicationContext = new ClassPathXmlApplicationContext("classpath:spring.xml");
        Book book = xmlApplicationContext.getBean(Book.class);
        System.out.println(book);
    }

}

